//
//  sousuoViewController.m
//  左邻右家
//
//  Created by dsdf on 16/2/23.
//  Copyright © 2016年 Hiccup. All rights reserved.
//

#import "sousuoViewController.h"

@interface sousuoViewController ()

@end

@implementation sousuoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    UIButton *button=[[UIButton alloc]init];
    button.frame=CGRectMake(0, 0, 375, 64);
    button.backgroundColor=[UIColor colorWithRed: 230/255.0 green:55/255.0 blue:55/255.0 alpha:1.0];
    [self.view addSubview:button];
    

    
    UIButton *button1=[[UIButton alloc]init ];//]WithFrame:CGRectMake(50, 50, 20, 20)];
    button1.frame=CGRectMake(310, 25, 50, 28);
    //[button1 setBackgroundImage:[UIImage imageNamed:@"return@2x.png"] forState:UIControlStateNormal];
    [button1 setTitle:@"取消" forState:UIControlStateNormal];
    button1.titleLabel.font=[UIFont systemFontOfSize:14];
    [button1 addTarget:self action:@selector(fanhui:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button1];
    
    UISearchBar *sousuobut=[[UISearchBar alloc]initWithFrame:CGRectMake(5, 25, 310, 28)];
    sousuobut.backgroundColor=[UIColor redColor];
    [self.view addSubview:sousuobut];
    
    
    
    
}

- (IBAction)fanhui:(id)sender {
    [self dismissModalViewControllerAnimated:YES];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
